package com.example.springboot_plus.enums;

/**
 * projectName: springboot_part
 *
 * @author: 赵伟风
 * time: 2021/9/17 22:35
 * description: 结果枚举类型
 */
public enum ResponseCode {

    USER_HAS_EXIST(511,"账号已经存在!"),
    USER_FIAL_NO_ACCOUNT(512,"账号错误！");

    private String name;
    private int  code;

    ResponseCode(int code,String name){
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
